<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>练习</title>
    <link rel="stylesheet" href="test.css" type="text/css" />
    <!--引入jquery-->
    <script type="text/javascript" src="jq/jquery-1.4.4.js">

    </script>

</head>
<body>
    <h1>Hello World</h1>
    <button id="butt" class="btn">按钮</button>
    <button id="butt2" >按钮2</button>


</body>


<!--使用jquery-->
<script type="text/javascript">
    $(".btn").click(function(){
        alert("呵呵,这里是一行JavaScript代码1");
    });

    $("#butt2").click(function(){
        alert("1");
    });
</script>
</html>